<template>
   <div>

   </div>
</template>

<script>
    export default {
        name: "detail",
        data(){
            return {
                id:'',
                item:''
            }
        },
        created() {
            console.log(this.$route.params.id)
           this.id=  this.$route.query.id;
            this.getinfo(this.id)
        },
        methods:{
            getinfo()
            {
                this.$http({
                    url: this.$http.adornUrl('/yunxi/tproduct/info/'+this.id),
                    method: 'get',

                }).then(res=>{
                    this.item=res.data.tProduct
                })
            }
        }
    }
</script>

<style scoped>

</style>